import java.util.Scanner;
class OwnException extends Exception{
public OwnException() {}

public OwnException(String msg)
    {
    super(msg);
    }
}


class Test
     {
     public Test(){}
     
     void checkAge(int age) throws OwnException
      {
     
      
      if(age <18 )
        {
        String msg="CHILD MARRIAGE !!! ";
        throw new OwnException(msg);
        }
      else { System.out.println(" Get married ! ");}

      }
             
        
     }

class TestException{
 public static void main(String[] args)
  {
  Test t=new Test();
Scanner in=new Scanner(System.in);
int age=0;
  try{
 System.out.println("Enter Your AGE :");

   age=in.nextInt();
     t.checkAge(age);
     }

  catch(OwnException e)
       {e.printStackTrace();}
  }
}              



